package com.eshore.norm.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 租户资源统计
 * </p>
 *
 * @author chenjl
 * @since 2024-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class NormProjectStat implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 资源池id
     */
    @ApiModelProperty(value = "资源池id")
    private Long configId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateDate;

    /**
     * 数据统计时间
     */
    @ApiModelProperty(value = "数据统计时间")
    private String dataStatAt;

    /**
     * 租户名称
     */
    @ApiModelProperty(value = "租户名称")
    private String projectName;

    /**
     * 该租户虚拟机数量
     */
    @ApiModelProperty(value = "该租户虚拟机数量")
    private Long vmTotal;

    /**
     * 该租户CPU数量
     */
    @ApiModelProperty(value = "该租户CPU数量")
    private Long cpuTotal;

    /**
     * 该租户内存数量，单位 MB
     */
    @ApiModelProperty(value = "该租户内存数量")
    private Long memTotal;

    /**
     * 该租户存储数量，单位 MB
     */
    @ApiModelProperty(value = "该租户存储数量")
    private Long storageTotal;


}
